Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Fix explanation of script tag change #6996

Closed
wants to merge 1 commit into from
Closed

Conversation

akiani
Copy link

@akiani akiani commented Apr 4, 2014

Request Type: docs

How to reproduce:

Component(s): ngRoute

Impact: small

Complexity: small

This issue is related to:

Detailed Description:

Other Comments:

The description says we added "to new tags" which probably was supposed to be "two new tags". But even with that it's a bit confusing because there is one tag added compared to the previous step, that is the tag for angular-route.js. I just updated the doc to say this more clearly.

The description says we added "to new tags" which probably was supposed to be "two new tags". But even with that it's a bit confusing because there is one tag added compared to the previous step, that is the tag for `angular-route.js`. I just updated the doc to say this more clearly.
@mary-poppins
Copy link

Thanks for the PR! Please check the items below to help us merge this faster. See the contributing docs for more information.

  • Uses the issue template (#6996)

If you need to make changes to your pull request, you can update the commit with git commit --amend.
Then, update the pull request with git push -f.

Thanks again for your help!

@@ -129,10 +129,13 @@ __`app/index.html`:__
</html>
```

We have added to extra `<script>` tags in our index file to load up extra JavaScript files into our
We have added an extra `<script>` tag to our index file to load up an extra JavaScript file into our
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be:

We have added two extra <script> tags in our index file to load up extra JavaScript files into our
application:

  • angular-route.js : defines the ngRoute module.
  • controllers.js : defines a new phonecatControllers module.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it could be that too, but there is really one script tag added compared to the previous step... but that'd be better than "to" too. I can change if you want.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, there are two script tags added, however controllers.js is present in step 6. The one which seems to be added is app.js.

I think maybe the tutorial app is broken, because that doesn't seem right. @petebacondarwin tutorial guru, does it actually work? I don't see how the injector gets created properly at all until step 7, that seems broken.

@petebacondarwin petebacondarwin self-assigned this Apr 5, 2014
@petebacondarwin
Copy link
Contributor

I'll sort this out. It may be that the tutorial content is still not quite in synch with angular-phonecat, which definitely works

@caitp
Copy link
Contributor

caitp commented Apr 5, 2014

I agree that it works, but it's not clear how it works --- it's only loading a script which defines the phonecatControllers module, but bootstraps the app with phonecatApp. That doesn't make any sense!

@caitp
Copy link
Contributor

caitp commented Apr 5, 2014

Oh, apparently I'm wrong. There is no phonecatControllers app anymore -- or at least for the early steps in the tutorial, the controllers file creates phonecatApp. That makes sense, then.

@petebacondarwin
Copy link
Contributor

Oh, I see. We add the app.js since we are now creating a top level app that "depends" upon the controllers. I'll reword the tutorial step.

@mary-poppins
Copy link

I'm sorry, but I wasn't able to verify your Contributor License Agreement (CLA) signature. CLA signature is required for any code contributions to AngularJS.

Please sign our CLA and ensure that the CLA signature email address and the email address in this PR's commits match.

If you signed the CLA as a corporation, please let us know the company's name.

Thanks a bunch!

PS: If you signed the CLA in the past then most likely the email addresses don't match. Please sign the CLA again or update the email address in the commit of this PR.
PS2: If you are a Googler, please sign the CLA as well to simplify the CLA verification process.

@akiani akiani added cla: no and removed cla: yes labels Apr 6, 2014
@mary-poppins
Copy link

CLA signature verified! Thank you!

Someone from the team will now triage your PR and it will be processed based on the determined priority (doc updates and fixes with tests are prioritized over other changes).

@akiani
Copy link
Author

akiani commented Apr 6, 2014

Many thanks :)

On Apr 6, 2014, at 6:58 AM, Pete Bacon Darwin notifications@github.com wrote:

Closed #6996 via f7cf680.


Reply to this email directly or view it on GitHub.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants